package com.topisv.tms.repository.stock.preInstorage;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.stock.instorage.pre.PreInBill;

/**
 * 预约入库DAO
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2014-7-3      CC            1.0           Create
 */
public interface PreInBillDao extends PagingAndSortingRepository<PreInBill, Long>, JpaSpecificationExecutor<PreInBill> {
	
	@Query("select t from PreInBill t where t.preBillId = ?1")
	PreInBill findByPreBillId(Long preBillId);
	
}
